package com.huaxiafinance.management.dto.request;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * Created by huangwencheng on 2017/11/6.
 */
public class InviteDto {

    @NotNull(message = "渠道选择不能为空")
    private Integer channel;
    //开始时间
    private String startTime;
    //结束时间
    private String endTime;
    //查询词
    private String queryWord;

    private Date startDate;

    private Date endDate;

    @NotNull(message = "页数不能为空")
    private Integer page;

    @Min(value = 1, message = "分页最小行数为1")
    @Max(value = 50, message = "分页最大行数为50")
    private int rows;

    public Integer getChannel() {
        return channel;
    }

    public void setChannel(Integer channel) {
        this.channel = channel;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getQueryWord() {
        return queryWord;
    }

    public void setQueryWord(String queryWord) {
        this.queryWord = queryWord;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public int getRows() {
        return rows;
    }

    public void setRows(int rows) {
        this.rows = rows;
    }

    @Override
    public String toString() {
        return "InviteDto{" +
                "channel=" + channel +
                ", startTime='" + startTime + '\'' +
                ", endTime='" + endTime + '\'' +
                ", queryWord='" + queryWord + '\'' +
                ", startDate=" + startDate +
                ", endDate=" + endDate +
                ", page=" + page +
                ", rows=" + rows +
                '}';
    }
}
